/*
 * @Author: zxc
 * @Date: 2020-07-23 15:46:02
 * @LastEditTime: 2020-08-12 10:57:23
 * @LastEditors: zxc
 * @Description: 用户信息相关的内容
 */ 
import { createRoutine, promisifyRoutine } from 'redux-saga-routines';
import extendRoutine from '../extendRoutine';
import NAME_SPACE from '../../../constants/name-spce';

export const loginAction = extendRoutine(
  createRoutine(`${NAME_SPACE.USER}`),
  [
    {
      type: 'LOG_OUT',
      action: 'logOut',
    }
  ]
);

export const loginActionPromise = promisifyRoutine( loginAction );
